﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace lcs.Web.demandmaterialinfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int dmid=(Convert.ToInt32(strid));
					ShowInfo(dmid);
				}
			}
		}
		
	private void ShowInfo(int dmid)
	{
		lcs.BLL.demandmaterialinfo bll=new lcs.BLL.demandmaterialinfo();
		lcs.Model.demandmaterialinfo model=bll.GetModel(dmid);
		this.lbldmid.Text=model.dmid.ToString();
		this.lblmbm.Text=model.mbm;
		this.lblvtype.Text=model.vtype;
		this.lblnum.Text=model.num.ToString();
		this.lbldeliverytime.Text=model.deliverytime.ToString();
		this.lbldeliveryadd.Text=model.deliveryadd;
		this.lblestimate.Text=model.estimate.ToString();
		this.lblprice.Text=model.price.ToString();
		this.lbldpid.Text=model.dpid.ToString();

	}


    }
}
